      <?php use_helper('Date', 'Text') ?>             
        <div class="dashboardNavi grid_2">
                    <ul class="firstLevel">
                        <li <?php if ($sf_context->getRouting()->getCurrentInternalUri(true) == '@zestawienie' || has_slot('zestawienieActive')) { echo 'class="active"'; } ?>>
                            <?php echo link_to(__('Zestawienie', null, 'serwis'), '@zestawienie') ?>
                        </li>
                        <li <?php if ( ($sf_context->getRouting()->getCurrentInternalUri(true) == '@sf_social_group_mylist') || ($sf_context->getRouting()->getCurrentInternalUri(true) == '@gra_wynik')  || has_slot('grupyActive')) { echo 'class="active"'; } ?>>
                            <?php echo link_to(__('Grupy', null, 'serwis'), '@sf_social_group_mylist') ?>
                        </li>
                        <li <?php if (has_slot('osiagnieciaActive')) { echo 'class="active"'; } ?>>
                            <?php echo link_to(__('Osiągnięcia', null, 'serwis'), '@osiagniecia') ?>
                        </li>
                        <li <?php if ($sf_context->getRouting()->getCurrentInternalUri(true) == '@statystykiterapeuta' || has_slot('statystykiActive')) { echo 'class="active"'; } ?>>
                            <?php echo link_to(__('Statystyki', null, 'serwis'), '@statystykiterapeuta') ?>
                        </li>
                        <li <?php if ( ($sf_context->getRouting()->getCurrentInternalUri(true) == '@wyniki') || ($sf_context->getRouting()->getCurrentInternalUri(true) == '@gra_wynik') ) { echo 'class="active"'; } ?>>
                            <?php echo link_to(__('Moje wyniki', null, 'serwis'), '@wyniki') ?>
                        </li>
                       
                        <li <?php if ($sf_context->getRouting()->getCurrentInternalUri(true) == '@sf_social_contact_list') { echo 'class="active"'; } ?>>
                            <a href="#" class="dropDownMenuAnchor"><span class="dropDownMenuArrow"></span>Znajomi</a>
                            <div class="clear"></div>
                            <ul class="secLevel dropDown"> 
                                 <li <?php if ($sf_context->getRouting()->getCurrentInternalUri(true) == '@sf_social_contact_requests') { echo 'class="active"'; } ?>>
                                <a href="<?php echo url_for('@sf_social_contact_requests') ?>">Zaproszenia</a>
                                </li>
                                 <li <?php if ($sf_context->getRouting()->getCurrentInternalUri(true) == '@sf_social_contact_sentrequests') { echo 'class="active"'; } ?>>
                                <a href="<?php echo url_for('@sf_social_contact_sentrequests') ?>">Wysłane zaproszenia</a>
                                </li>
                                 <li <?php if ($sf_context->getRouting()->getCurrentInternalUri(true) == '@sf_social_contact_send_request') { echo 'class="active"'; } ?>>
                                <a href="<?php echo url_for('@sf_social_contact_send_request') ?>">Wyślij zaproszenie</a>
                                </li>
                            </ul>  
                        </li>
                        
                        <?php if ($unread > 0): ?>
                            <li class="newMsg">
                                <a href="#" class="dropDownMenuAnchor"><span class="dropDownMenuArrow"></span>Wiadomości<span>(<?php echo $unread ?>)</span></a>
                                <div class="clear"></div>
                                <ul class="secLevel dropDown"> 
                                    <li <?php if ($sf_context->getRouting()->getCurrentInternalUri(true) == '@sf_social_message_new') { echo 'class="active"'; } ?>>
                                    <a href="<?php echo url_for('@sf_social_message_new') ?>">Nowa wiadomość</a>
                                    </li>

                                    <li <?php if ($sf_context->getRouting()->getCurrentInternalUri(true) == '@sf_social_message_list') { echo 'class="active"'; } ?>>
                                    <a href="<?php echo url_for('@sf_social_message_list') ?>">Skrzynka odbiorcza <?php if ($unread > 0): ?> (<?php echo $unread ?>)<?php endif ?></a>
                                    </li>

                                      <li <?php if ($sf_context->getRouting()->getCurrentInternalUri(true) == '@sf_social_message_sentlist') { echo 'class="active"'; } ?>>
                                    <a href="<?php echo url_for('@sf_social_message_sentlist') ?>">Skrzynka nadawcza</a>
                                    </li>
                                </ul>
                            </li>                            
                        <?php else: ?>
                            <li>
                               <a href="#" class="dropDownMenuAnchor"><span class="dropDownMenuArrow"></span>Wiadomości</a>
                                <div class="clear"></div>
                                <ul class="secLevel dropDown"> 
                                    <li <?php if ($sf_context->getRouting()->getCurrentInternalUri(true) == '@sf_social_message_new') { echo 'class="active"'; } ?>>
                                    <a href="<?php echo url_for('@sf_social_message_new') ?>">Nowa wiadomość</a>
                                    </li>

                                    <li <?php if ($sf_context->getRouting()->getCurrentInternalUri(true) == '@sf_social_message_list') { echo 'class="active"'; } ?>>
                                    <a href="<?php echo url_for('@sf_social_message_list') ?>">Skrzynka odbiorcza <?php if ($unread > 0): ?> (<?php echo $unread ?>)<?php endif ?></a>
                                    </li>

                                      <li <?php if ($sf_context->getRouting()->getCurrentInternalUri(true) == '@sf_social_message_sentlist') { echo 'class="active"'; } ?>>
                                    <a href="<?php echo url_for('@sf_social_message_sentlist') ?>">Skrzynka nadawcza</a>
                                    </li>
                                </ul>
                            </li> 
                        <?php endif ?>                            
       
                        <li <?php if ($sf_context->getRouting()->getCurrentInternalUri(true) == '@sf_social_user_edit') { echo 'class="active"'; } ?>>
                            <a href="<?php echo url_for('@sf_social_user_edit') ?>">Ustawienia</a>
                            </li>
                    </ul>
                </div>